package com.qiangqiang.resoldhouse.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qiangqiang.resoldhouse.entity.Agent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zqh
 * @date: 2018/8/8 15:13
 * @description:
 */
@Mapper
public interface AgentMapper extends BaseMapper<Agent> {

    @Select("select * from agent where account=#{account}")
    public Agent selectAgentIdByAccount(@RequestParam("account") String account);
}
